package com.crm.service.contractReviewManager;

import com.crm.model.entity.contractReviewManager.ContractReview;
import com.crm.model.qo.contractReviewManager.ContractReviewFormQO;
import com.crm.model.vo.contractReviewManager.ContractCouponVO;
import com.crm.model.vo.contractReviewManager.ContractReviewFormVO;
import com.crm.model.vo.contractReviewManager.ContractReviewVO;

import java.util.List;

/**
 * @author luojie
 * @date 2021/3/30 11:18
 * (客服部)审核管理--合同审核
 */
public interface ContractReviewDbService {

    /**
     * 审核管理--合同审核列表
     * @param contractReviewFormQO ---合同审核列表查询参数
     * @param dateUnit             ---全部、今天、本周、本月查询条件
     * @param orderStr             ---排序
     * @author yincuimei
     * @return
     */
    List<ContractReviewFormVO> selectContractReviewFormVOList(ContractReviewFormQO contractReviewFormQO,Integer dateUnit,String orderStr);

    /**
     * 合同详情--审核详情(最新审核记录)
     * @param contractId ---合同ID
     * @author yincuimei
     * @return
     */
    ContractReviewVO selectContractReviewFinally(String contractId);

    /***
     * @Description:根据合同id获取合同审批列表
     * @Param:  * @param contractId
     * @Author: luojie
     * @Date: 2021/3/31 9:49
     */
    List<ContractReview>selectContractReviewListByContractId(String contractId);

    /**
     * 添加合同审批
     * @param contractReview 合同对象
     * @return
     */
    Boolean addContractReview(ContractReview contractReview);

    /***
     * @Description: 查询客户下的优惠券
     * @Param: customerId 客户id
     * @Author: baijian
     * @Date: 2021/11/15 10:54
     */
    List<ContractCouponVO> contractCouponList(String customerId);
}
